#pragma
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>

typedef int HPDataType;

typedef struct heap
{
	HPDataType *a;
	int size;
	int capacity;
}HP;

void HeapInit(HP* hp);

void HeapDestroy(HP* hp);

void HeapPrint(HP* hp);

void HeapPush(HP* hp,HPDataType x);

void HeapPop(HP* hp);